package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单表对象 t_orders
 *
 * @author zhaohs
 * @date 2021-01-04
 */
public class Orders extends BaseEntity
{
    private static final long serialVersionUID=1L;

    /** ID */
    private Long id;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String orderNo;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 店铺ID */
    @Excel(name = "店铺ID")
    private Long storeId;

    /** 收货人 */
    @Excel(name = "收货人")
    private String receiverName;

    /** 收货地址 */
    @Excel(name = "收货地址")
    private String receiverAddress;

    /** 收货电话 */
    @Excel(name = "收货电话")
    private String receiverTel;

    /** 支付方式 */
    @Excel(name = "支付方式")
    private Integer payType;

    /** 付款金额 */
    @Excel(name = "付款金额")
    private BigDecimal amount;

    /** 支付状态 */
    @Excel(name = "支付状态")
    private Integer payStatus;

    /** 订单状态 */
    @Excel(name = "订单状态")
    private Integer orderStatus;

    /** 支付时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "支付时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date payTime;

    /** 派送时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "派送时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date deliveryTime;

    /** 完成时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "完成时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date completeTime;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setOrderNo(String orderNo)
    {
        this.orderNo = orderNo;
    }

    public String getOrderNo()
    {
        return orderNo;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setStoreId(Long storeId)
    {
        this.storeId = storeId;
    }

    public Long getStoreId()
    {
        return storeId;
    }
    public void setReceiverName(String receiverName)
    {
        this.receiverName = receiverName;
    }

    public String getReceiverName()
    {
        return receiverName;
    }
    public void setReceiverAddress(String receiverAddress)
    {
        this.receiverAddress = receiverAddress;
    }

    public String getReceiverAddress()
    {
        return receiverAddress;
    }
    public void setReceiverTel(String receiverTel)
    {
        this.receiverTel = receiverTel;
    }

    public String getReceiverTel()
    {
        return receiverTel;
    }
    public void setPayType(Integer payType)
    {
        this.payType = payType;
    }

    public Integer getPayType()
    {
        return payType;
    }
    public void setAmount(BigDecimal amount)
    {
        this.amount = amount;
    }

    public BigDecimal getAmount()
    {
        return amount;
    }
    public void setPayStatus(Integer payStatus)
    {
        this.payStatus = payStatus;
    }

    public Integer getPayStatus()
    {
        return payStatus;
    }
    public void setOrderStatus(Integer orderStatus)
    {
        this.orderStatus = orderStatus;
    }

    public Integer getOrderStatus()
    {
        return orderStatus;
    }
    public void setPayTime(Date payTime)
    {
        this.payTime = payTime;
    }

    public Date getPayTime()
    {
        return payTime;
    }
    public void setDeliveryTime(Date deliveryTime)
    {
        this.deliveryTime = deliveryTime;
    }

    public Date getDeliveryTime()
    {
        return deliveryTime;
    }
    public void setCompleteTime(Date completeTime)
    {
        this.completeTime = completeTime;
    }

    public Date getCompleteTime()
    {
        return completeTime;
    }

    @Override
    public String toString(){
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id",getId())
                .append("orderNo",getOrderNo())
                .append("userId",getUserId())
                .append("storeId",getStoreId())
                .append("receiverName",getReceiverName())
                .append("receiverAddress",getReceiverAddress())
                .append("receiverTel",getReceiverTel())
                .append("payType",getPayType())
                .append("amount",getAmount())
                .append("payStatus",getPayStatus())
                .append("orderStatus",getOrderStatus())
                .append("remark",getRemark())
                .append("createTime",getCreateTime())
                .append("payTime",getPayTime())
                .append("deliveryTime",getDeliveryTime())
                .append("completeTime",getCompleteTime())
                .toString();
    }
}
